﻿<Window x:Class="WpfHardCodedStringsFinder.Views.DuplicateStringsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Duplicated strings"
        Width="450"
        Height="300">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="2*" />
			<RowDefinition />
		</Grid.RowDefinitions>
		<DataGrid x:Name="dgDuplications"
		          AlternatingRowBackground="Silver"
		          AutoGenerateColumns="False"
		          CanUserAddRows="False"
		          CanUserDeleteRows="False"
		          ItemsSource="{Binding DuplicateStrings,
		                                Mode=TwoWay}">
			<DataGrid.Columns>
				<DataGridTextColumn Width="150"
				                    Binding="{Binding ResourceString}"
				                    Header="String" />
				<DataGridComboBoxColumn Width="170"
				                        DisplayMemberPath="OccurrencesInFile.Key"
				                        Header="Occurrences in file"
				                        ItemsSource="{Binding OccurrencesInFile,
				                                              Mode=TwoWay}"
				                        SelectedValuePath="OccurrencesInFile.Key" />
			</DataGrid.Columns>
		</DataGrid>

		<Button x:Name="btnProcess"
		        Grid.Row="1"
		        HorizontalAlignment="Center"
		        VerticalAlignment="Center"
		        Click="btnProcess_Click"
		        Content="Process" Width="60" Height="25"/>
	</Grid>
</Window>
